/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkg1ifxClienteTcp;
import pkg1ifxClienteTcp.cifxCliente;
import pkg1ifxArchivos.caDatosTemplate;
import pkg1ifxArchivos.cifxLogs;
/**
 *
 * @author strailaparicio
 */
public class caThreadAppBot extends Thread{
    private cifxLogs olog = new cifxLogs();
    private caAppBot appbot = new caAppBot(olog);
    private String tipoejecucion="IDENTIFICAR";//IDENTIFICAR, VERIFICAR
    
    public caThreadAppBot(caAppBot mappbot, String tipo, cifxLogs datolog)
    {
        olog=datolog;
        appbot=mappbot;
        tipoejecucion=tipo;
        
    }
    
    @Override
    public void run()
    {
        if(tipoejecucion.equals("IDENTIFICAR"))
        {
           appbot.botFenixIdentificar(); 
        }
        else if(tipoejecucion.equals("VERIFICAR"))
        {
            appbot.botFenixVerificar();
        }

        else if(tipoejecucion.equals("INSERTAR"))
        {
            appbot.botFenixInsertar();
        }
        
    }
    
}
